<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:90:"/app/wwwroot/zhangwei/www/gongzi/public/../application/index/view/manage/payslip_list.html";i:1671875145;s:74:"/app/wwwroot/zhangwei/www/gongzi/application/index/view/layout/manage.html";i:1671875144;s:74:"/app/wwwroot/zhangwei/www/gongzi/application/index/view/common/script.html";i:1671875145;}*/ ?>
<!DOCTYPE html>
<html lang="en">
<head class="layui-layout-body">
    <meta charset="utf-8">
    <title><?php echo htmlentities($site['name']); ?></title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
    <meta name="renderer" content="webkit">
    <link href="/assets/css/frontend<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.css?v=<?php echo htmlentities(\think\Config::get('site.version')); ?>" rel="stylesheet">
    <!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
    <!--[if lt IE 9]>
    <script src="/assets/js/html5shiv.js"></script>
    <script src="/assets/js/respond.min.js"></script>
    <![endif]-->
    <script type="text/javascript">
        var require = {
            config: <?php echo json_encode($config); ?>
        };
    </script>
</head>
<body class="layui-layout-body" id="layer1">
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="layui-nav layui-layout-right">
            <div class="head_img"><img src="<?php echo cdnurl(htmlentities($user['avatar'])); ?>" alt=""/><?php echo $user['nickname']; ?></div>
        </div>
    </div>
    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧垂直导航区域-->
            <div class="logo"><img src="/assets/manage/images/logo.png" width="64" height="64" alt=""/></div>
            <ul class="layui-nav nav">
                <?php if($auth->check('manage/index')): ?>
                <li class="layui-nav-item <?php echo check_navs_active('manage/index'); ?>">
                    <a href="<?php echo url('manage/index'); ?>"><i class="iconfont icon-shouye"></i>首页</a>
                </li>
                <?php endif; if($auth->check('manage/payslip_add')): ?>
                <li class="layui-nav-item <?php echo check_navs_active('manage/payslip_add'); ?>">
                    <a href="<?php echo url('manage/payslip_add'); ?>"><i class="iconfont icon-gongzitiao"></i>新增工资条</a>
                </li>
                <?php endif; if($auth->check('manage/index')): ?>
                <li class="layui-nav-item <?php echo check_navs_active('manage/payslip_list'); ?>">
                    <a href="<?php echo url('manage/payslip_list'); ?>"><i class="iconfont icon-fasongxiaoxi"></i>发送记录</a>
                </li>
                <?php endif; if($auth->check('manage/payslip_feedback')): ?>
                <li class="layui-nav-item <?php echo check_navs_active('manage/payslip_feedback'); ?>">
                    <a href="<?php echo url('manage/payslip_feedback'); ?>"><i class="iconfont icon-xinxi"></i>反馈查看</a>
                </li>
                <?php endif; if($auth->check('manage/payslip_settings')): ?>
                <li class="layui-nav-item <?php echo check_navs_active('manage/payslip_settings'); ?>">
                    <a href="<?php echo url('manage/payslip_settings'); ?>"><i class="iconfont icon-shezhi2"></i>发放设置</a>
                </li>
                <?php endif; if($auth->check('manage/address_book')): ?>
                <li class="layui-nav-item <?php echo check_navs_active('manage/address_book'); ?>">
                    <a href="<?php echo url('manage/address_book'); ?>"><i class="iconfont icon-bg-maillist"></i>通讯录</a>
                </li>
                <?php endif; ?>
            </ul>
        </div>
    </div>
    <div class="layui-body">
        <div class="content">
    <div class="layui-card ">
        <div class="search_box">
            <form id="search-form" class="layui-form layui-clear" role="form" data-toggle="validator" method="GET" action="">
                <div class="search_input select_year">
                    <input type="text" id="year" name="year" value="<?php echo $year; ?>" class="layui-input">
                    <div class="search_icon layui-icon layui-icon-date"></div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">工资类型</label>
                    <div class="layui-input-inline">
                        <select name="type" lay-filter="type">
                            <option value="">全部类型</option>
                            <?php if($payslip_type): foreach($payslip_type as $item): ?>
                            <option value="<?php echo $item['id']; ?>" <?php if($item['id']==$type): ?>selected<?php endif; ?>><?php echo $item['name']; ?></option>
                            <?php endforeach; endif; ?>
                        </select>
                        <input type="hidden" name="page" value="<?php echo $lists['current_page']; ?>">
                    </div>
                </div>
            </form>
        </div>
        <div class="layui-card-body">
            <div class="fsjl_list layui-col-space24 layui-row">
                <?php if($lists['data']): foreach($lists['data'] as $item): ?>
                <div class="item layui-col-sm3">
                    <a class="layui-card" href="<?php echo url($item['status'] > 0 ? 'manage/payslip_detail':  'manage/payslip_check' , ['id' => $item['id']]); ?>">
                        <h3><?php echo $item['title']; ?></h3>
                        <div class="text"><span><?php echo $item['user_count']; ?></span> 人</div>
                        <div class="time">
                            <?php if($item['status'] == 1): ?>
                                <div class="tag1"><i class="iconfont icon-shijian"></i> 队列中，即将发送</div>
                            <?php elseif(($item['status'] == 2)): ?>
                                <div class="tag2"><i class="iconfont icon-shijian"></i> 定时发送</div>
                                将于 <span class="color_EF4033"><?php echo datetime($item['estimatetime']); ?></span> 发送
                            <?php elseif(($item['status'] == 3)): ?>
                                <div class="tag"><i class="iconfont icon-gou"></i> 已发送</div>
                                发送时间：<?php echo datetime($item['sendtime']); else: ?>
                                <div class="tag3"><i class="iconfont icon-wenhaoxiao"></i> 未完成设置，点击继续设置</div>
                            <?php endif; ?>
                        </div>
                    </a>
                </div>
                <?php endforeach; endif; ?>
            </div>
            <div id="laypage" data-total="<?php echo $lists['total']; ?>" data-per_page="<?php echo $lists['per_page']; ?>" data-current_page="<?php echo $lists['current_page']; ?>"></div>
        </div>
    </div>
</div>
    </div>
</div>
<link rel="stylesheet" href="/assets/manage/layui/css/layui.css">
<link rel="stylesheet" href="/assets/manage/css/css.css?v=<?php echo htmlentities(\think\Config::get('site.version')); ?>">
<link rel="stylesheet" href="//at.alicdn.com/t/c/font_3789954_npmbld8fjlc.css">
<script src="/assets/js/require<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.js" data-main="/assets/js/require-frontend<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.js?v=<?php echo htmlentities($site['version']); ?>"></script>
</body>
</html>